package com.android.love.parser;

import com.alibaba.fastjson.JSON;
import com.android.love.util.LogUtil;

public class AddressParser extends BaseParser<Long> {
	private static final String TAG = "AddressParser";

	@Override
	public Long parserJson(String jsonStr) {
		Long address_id = -1l;
		LogUtil.i(TAG, "data11---" + jsonStr);
		if (checkResponse(jsonStr)) {
			String data = jsonObject.getString("data");
			LogUtil.i(TAG, "data---" + data);
			if (data != null) {
				jsonObject = JSON.parseObject(data);
				address_id =jsonObject.getLong("address_id");
			}
		}
		LogUtil.i(TAG, "address_id---" + address_id);
		return address_id;
	}
}
